package cn.muqingfeng.api.to;

import com.google.gson.annotations.SerializedName;

public class SendResTO {
	@SerializedName("result")
	private int result;
	@SerializedName("data")
	private SendDataTO data;

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getMessage() {
		return data == null ? null : data.getMsg();
	}

	public boolean isSuccess() {
		return result == 1;
	}
}
